package com.zking.ssm.service.impl;

import com.zking.ssm.mapper.HotelMemberMapper;
import com.zking.ssm.model.HotelMember;
import com.zking.ssm.service.IHotelMemberService;
import com.zking.ssm.utils.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HotelMemberServiceImpl implements IHotelMemberService {

    @Autowired
    private HotelMemberMapper hotelMemberMapper;

    public HotelMemberServiceImpl(){

    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return hotelMemberMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HotelMember record) {
        return hotelMemberMapper.insert(record);
    }

    @Override
    public int insertSelective(HotelMember record) {
        return hotelMemberMapper.insertSelective(record);
    }

    @Override
    public HotelMember selectByPrimaryKey(Integer id) {
        return hotelMemberMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HotelMember record) {
        return hotelMemberMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HotelMember record) {
        return hotelMemberMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HotelMember> SelectAll(HotelMember hotelMember, PageBean pageBean) {
        return hotelMemberMapper.SelectAll(hotelMember);
    }

    @Override
    public List<HotelMember> SelectStutas(HotelMember hotelMember) {
        return hotelMemberMapper.SelectStutas(hotelMember);
    }
}
